#include "common/defines.h"
#include "messagerequest.h"
#include "converse/converseabstractmessage.h"


#include <QDebug>


MessageRequest::MessageRequest(const Converse::AbstractMessage &message, QObject *parent) :
    Network::ConnectionJSONRequest(parent),
    m_message(message)
{
}


MessageRequest::~MessageRequest()
{

}


QString MessageRequest::commandId() const
{
    return QString::number(PRIVATE_CHAT_WITH_A_FRIEND);
}


QVariant MessageRequest::data() const
{
    return m_message.toVariant();
}
